package cn.com.jinhao.provider.user.mapper;


import cn.com.jinhao.hotline.commons.base.BaseMapper;
import cn.com.jinhao.provider.user.entity.User;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


/**
 * hotline-spring-cloud
 * <p>Description: 用户</p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2019/12/17
 * @since 2019-12-17
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    /**
     * 通过用户编码查询用户名
     *
     * @param code 用户编码
     * @return String  用户名
     */
    @Select("SELECT oper FROM ST$OPER WHERE code=#{code}")
    String getNameByCode(@Param("code") String code);
}
